<?php
namespace haibao\cms\model\data;

Class SearchHistory extends Base{
	const SEARCH_TYPE_UNION = 1;
	const SEARCH_TYPE_ARTICLE = 2;
	const SEARCH_TYPE_IMAGE_SET = 3;
	//const SEARCH_TYPE_FEATURE_VIDEO = 4;
	const SEARCH_TYPE_FEATURE = 5;
	const SEARCH_TYPE_VIDEO = 6;
	const SEARCH_TYPE_BRAND = 7;
	const SEARCH_TYPE_STAR = 8;
	const SEARCH_TYPE_DESIGNER = 9;
	const SEARCH_TYPE_AMERICAN_DRAMA = 10;
	
	public $Type;
	public $Keywords;
	public $PageNum;
	public $CreateTime;
	public $IpAddress = '';

	public function __construct(){
		parent::__construct();

		$this->intField('Type', 'Type',true);
		$this->stringField('Keywords', 'Keywords',true);
		$this->intField('PageNum', 'PageNum',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->stringField('IpAddress', 'IpAddress',true);

		$this->setTableName('SearchHistory');
	}
}